<?php
/*
Template Name: HomePage
*/
?>
<?php get_header();?>
    <div id="homeWrapper" class="clearfix">
        <?php include(TEMPLATEPATH . '/imageSlider.php'); ?>
        <?php 
        if(have_posts()) : while(have_posts()) : the_post(); ?>
        <h1 class="slogan"><?php echo get_post_meta($post->ID, 'tagline', true);?></h1>
        <?php the_content('');?>
 <a href="<?php the_permalink();?>"       >Read more</a>
        <?php endwhile; else: ?>
        <p>Sorry there are nothing to show</p>
        <?php endif; ?>
        
    
    <div class="homeInfo">
        <h1>Blog Posts</h1>
        <?php 
        $blogPost = new WP_query();
        $blogPost->query('showposts=1'); //co the filter bang cahc them thuoc tinh "&cat="
        while($blogPost->have_posts()) : $blogPost->the_post(); ?>
        <p><?php the_content_rss('&hellip;', false, '', 40); // the_content_rss() -> gioi han ky tu?></p>
        <a href="<?php the_permalink(); ?>">Read More &hellip;</a>
        <?php endwhile;?>
    </div><!--end .homeInfo-->
    </div><!--end #homeWrapper-->
<?php get_footer(); ?>